// source --> https://www.supertechindustrial.com/wp-content/plugins/chaty/js/cht-front-script.min.js?ver=1662398050 function launch_chaty(t){(void 0==t||"widget_index"==t)&&(t=1),jQuery("#chaty-widget-0").length&&jQuery("#chaty-widget-0 .chaty-cta-button .open-chaty").trigger("click")}function close_chaty(){jQuery(".chaty.active .chaty-open").length&&jQuery(".chaty.active .chaty-open").each(function(){jQuery(this).find(".chaty-cta-close").trigger("click")})}!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t,e){function a(a){if(t("#chaty-widget-"+a).data("animation")!=e&&"none"!=t("#chaty-widget-"+a).data("animation")){var n="chaty-animation-"+t("#chaty-widget-"+a).data("animation");t("#chaty-widget-"+a+" ."+n).removeClass(n)}}function n(){var e=!1;Y.length&&t.each(Y,function(t,a){P(a.triggers.has_countries)&&!_(a.triggers.countries)&&a.triggers.countries.length&&(e=!0)}),e?(Z=q(),""!=Z?i():c()):i()}function c(){var e="https://www.cloudflare.com/cdn-cgi/trace";t.get(e,function(t){var e=t.match("loc=(.*)");e.length>1&&(e=e[1],e&&(e=e.toUpperCase(),""==e&&(e="-"),L(e),i()))})}function i(){Y.length&&(t.each(Y,function(e,a){var n="",c="",i=0,r={},d=W(a);if(d=d&&N(a),d=d&&D(a),t.each(a.channels,function(t,e){var a=s(e);a&&(i++,r=e)}),d&&i>0&&!t("#chaty-widget-"+a.id).length){var g=C(a.settings);g="right"==g?"right":"left";var y=k(a),p="";t("body").append(p),P(a.triggers.auto_hide_widget)&&parseInt(a.triggers.hide_after)>0&&(t("#chaty-widget-"+a.id).addClass("auto-hide-chaty"),t("#chaty-widget-"+a.id).attr("data-time",a.triggers.hide_after));var u=Q(a.id,"c-widget");if(t("#chaty-widget-"+a.id).addClass(a.settings.show_cta),1==i){"vertical"!=a.settings.icon_view&&(y="right"!=g?"right":"left");var f=l(r,a.id,y);t("#chaty-widget-"+a.id+" .chaty-i-trigger").html(f),t("#chaty-widget-"+a.id+" .chaty-i-trigger").addClass("single-channel"),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel").addClass("single"),t("#chaty-widget-"+a.id+" .chaty-widget").addClass("has-single");var m=a.settings.cta_text;"first_click"==a.settings.show_cta&&(u?(t("#chaty-widget-"+a.id+" .chaty-tooltip").removeClass("chaty-tooltip"),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel").addClass("active").addClass("chaty-tooltip").addClass("pos-"+y),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel").append(""+m+"").addClass("active").addClass("has-on-hover"),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel a").append(""+m+"").addClass("has-on-hover")):t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel a").append(""+m+"").removeClass("active").addClass("has-on-hover")),"all_time"==a.settings.show_cta&&t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-tooltip").append(""+m+"").addClass("active").addClass("has-on-hover");var v=r;("Instagram"!=v.channel_type||"#ffffff"!=v.icon_color&&"#fff"!=v.icon_color)&&(n+="#chaty-widget-"+a.id+" ."+v.channel_type+"-channel .color-element{ fill: "+v.icon_color+"; color: "+v.icon_color+";}",n+="#chaty-widget-"+a.id+" .channel-icon-"+v.channel_type+" .color-element{ fill: "+v.icon_color+"; color: "+v.icon_color+";}"),n+="#chaty-widget-"+a.id+" ."+v.channel_type+"-channel .chaty-custom-icon { background-color: "+v.icon_color+"; }",n+="#chaty-widget-"+a.id+" ."+v.channel_type+"-channel .chaty-svg { background-color: "+v.icon_color+";}",n+="#chaty-widget-"+a.id+" .channel-icon-"+v.channel_type+" .chaty-svg { background-color: "+v.icon_color+";}","Contact_Us"==v.channel_type&&(n+=".chaty-contact-form-box #chaty-submit-button-"+a.id+" {background-color: "+v.contact_form_settings.button_bg_color+"; color: "+v.contact_form_settings.button_text_color+";} ")}else{t.each(a.channels,function(e,c){var i=s(c);if(i){x(c.channel_type)&&(c.channel_type=c.channel);var o=l(c,a.id,y);t("#chaty-widget-"+a.id+" .chaty-channel-list").append(o),("Instagram"!=c.channel_type||"#ffffff"!=c.icon_color&&"#fff"!=c.icon_color)&&(n+="#chaty-widget-"+a.id+" ."+c.channel_type+"-channel .color-element{ fill: "+c.icon_color+"; color: "+c.icon_color+";}",n+="#chaty-widget-"+a.id+" .channel-icon-"+c.channel_type+" .color-element{ fill: "+c.icon_color+"; color: "+c.icon_color+";}"),n+="#chaty-widget-"+a.id+" ."+c.channel_type+"-channel .chaty-custom-icon { background-color: "+c.icon_color+"; }",n+="#chaty-widget-"+a.id+" ."+c.channel_type+"-channel .chaty-svg { background-color: "+c.icon_color+";}",n+="#chaty-widget-"+a.id+" .channel-icon-"+c.channel_type+" .chaty-svg { background-color: "+c.icon_color+";}","Contact_Us"==c.channel_type&&(n+=".chaty-contact-form-box #chaty-submit-button-"+a.id+" {background-color: "+c.contact_form_settings.button_bg_color+"; color: "+c.contact_form_settings.button_text_color+";} ")}});var w=F(a.settings,a.id),m=a.settings.cta_text;"first_click"==a.settings.show_cta&&(u||(m=""));var b=y;"horizontal"==a.settings.icon_view&&(b="left"==g?"right":"left");var I='
'+m+'
';t("#chaty-widget-"+a.id+" .chaty-i-trigger").html(I);var j='
';t("#chaty-widget-"+a.id+" .chaty-i-trigger").append(j)}var u=Q(a.id,"c-widget");!u||"open"==a.settings.default_state&&1!=i||(U(a.settings,a.id),A(a.settings,a.id));var M=0;"open"!=a.settings.default_state||P(a.settings.show_close_button)||(t("#chaty-widget-"+a.id+" .chaty-widget").addClass("chaty-no-close-button").addClass("chaty-open"),M=1),P(a.settings.is_google_analytics_enabled)&&(t("#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel").addClass("has-gae"),t("#chaty-widget-"+a.id+" .chaty-i-trigger.single-channel .chaty-channel").addClass("has-gae"),t(".chaty-outer-forms.chaty-whatsapp-form.chaty-form-"+a.id+" form.add-analytics").addClass("form-google-analytics")),P(a.settings.has_custom_css)&&!_(a.settings.custom_css)&&(c+=a.settings.custom_css),"hover"==a.settings.default_state?t("#chaty-widget-"+a.id).addClass("open-on-hover"):"open"==a.settings.default_state&&(t("#chaty-widget-"+a.id+" .chaty-widget").addClass("default-open"),(u||!P(a.settings.show_close_button))&&t("#chaty-widget-"+a.id+" .chaty-widget").addClass("chaty-open"));var T=h(a.settings.widget_size,a.settings.custom_widget_size);if(T=parseInt(T),n+="#chaty-widget-"+a.id+" .chaty-channel {width: "+T+"px; height: "+T+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel > a {width: "+T+"px; height: "+T+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel > a .chaty-custom-icon {display:block; width: "+T+"px; height: "+T+"px; line-height: "+T+"px; font-size: "+parseInt(T/2)+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel button {width: "+T+"px; height: "+T+"px; margin: 0; padding:0; outline: none; border-radius: 50%;}",n+="#chaty-widget-"+a.id+" .chaty-channel .chaty-svg {width: "+T+"px; height: "+T+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel .chaty-svg img {width: "+T+"px; height: "+T+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel span.chaty-icon {width: "+T+"px; height: "+T+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel a {width: "+T+"px; height: "+T+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel .chaty-svg .chaty-custom-channel-icon {width: "+T+"px; height: "+T+"px; line-height: "+T+"px; display: block; font-size:"+parseInt(T/2)+"px; }",n+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-cta-button {background-color: "+a.settings.widget_color+"; }",n+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-cta-button button {background-color: "+a.settings.widget_color+"; }",n+="#chaty-widget-"+a.id+" .chaty-i-trigger .ch-pending-msg {background-color: "+a.settings.pending_mesg_count_bgcolor+"; color: "+a.settings.pending_mesg_count_color+"; }","vertical"==a.settings.icon_view){n+="#chaty-widget-"+a.id+" .chaty-channel-list {height: "+i*(T+8)+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel-list {width: "+(T+8)+"px; }";for(var z=0;i>=z;z++)n+="#chaty-widget-"+a.id+" .chaty-open .chaty-channel-list .chaty-channel:nth-child("+(z+1)+") {-webkit-transform: translateY(-"+(T+8)*(i-z-M)+"px); transform: translateY(-"+(T+8)*(i-z-M)+"px);}"}else{t("#chaty-widget-"+a.id+" .chaty-widget").addClass("hor-mode"),n+="#chaty-widget-"+a.id+" .chaty-channel-list {width: "+i*(T+8)+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel-list {height: "+T+"px; }";for(var z=0;i>=z;z++)n+="#chaty-widget-"+a.id+" .chaty-widget.left-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(z+1)+") {-webkit-transform: translateX("+(T+8)*(i-z-M)+"px); transform: translateX("+(T+8)*(i-z-M)+"px);}",n+="#chaty-widget-"+a.id+" .chaty-widget.right-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(z+1)+") {-webkit-transform: translateX(-"+(T+8)*(i-z-M)+"px); transform: translateX(-"+(T+8)*(i-z-M)+"px);}"}var B=a.settings.bottom_spacing,E=a.settings.side_spacing;n+="#chaty-widget-"+a.id+" .chaty-widget {bottom: "+B+"px}","left"==g?(n+="#chaty-widget-"+a.id+" .chaty-widget {left: "+E+"px; right: auto;}",n+=".chaty-outer-forms.pos-left.chaty-form-"+a.id+" {left: "+E+"px}",t(".chaty-form-"+a.id).addClass("pos-left")):(n+="#chaty-widget-"+a.id+" .chaty-widget {right: "+E+"px; left:auto;}",t(".chaty-form-"+a.id).addClass("pos-right"),n+=".chaty-outer-forms.pos-right.chaty-form-"+a.id+" {right: "+E+"px; left:auto;}"),t(".chaty-form-"+a.id).show();var q=T+15+parseInt(B);n+=".chaty-outer-forms.active.chaty-form-"+a.id+" {-webkit-transform: translateY(-"+q+"px); transform: translateY(-"+q+"px)} ",n+="#chaty-widget-"+a.id+" .chaty-tooltip:after {background-color: "+a.settings.cta_bg_color+"; color: "+a.settings.cta_text_color+"}",n+="#chaty-widget-"+a.id+" .chaty-tooltip.pos-top:before {border-top-color: "+a.settings.cta_bg_color+"; }",n+="#chaty-widget-"+a.id+" .chaty-tooltip.pos-left:before {border-left-color: "+a.settings.cta_bg_color+"; }",n+="#chaty-widget-"+a.id+" .chaty-tooltip.pos-right:before {border-right-color: "+a.settings.cta_bg_color+";}",n+="#chaty-widget-"+a.id+" .on-hover-text {background-color: "+a.settings.cta_bg_color+"; color: "+a.settings.cta_text_color+"}",n+="#chaty-widget-"+a.id+" .chaty-tooltip.pos-top .on-hover-text:before {border-top-color: "+a.settings.cta_bg_color+"; }",n+="#chaty-widget-"+a.id+" .chaty-tooltip.pos-left .on-hover-text:before {border-left-color: "+a.settings.cta_bg_color+"; }",n+="#chaty-widget-"+a.id+" .chaty-tooltip.pos-right .on-hover-text:before {border-right-color: "+a.settings.cta_bg_color+";}";var L=Q(a.id,"v-widget");if(L&&(P(a.triggers.exit_intent)||P(a.triggers.has_time_delay)&&parseInt(a.triggers.time_delay)>0||P(a.triggers.has_display_after_page_scroll)&&parseInt(a.triggers.display_after_page_scroll)>0)?(P(a.triggers.has_time_delay)&&parseInt(a.triggers.time_delay)>0&&(et=!0,parseInt(a.triggers.time_delay)>at&&(at=a.triggers.time_delay),t("#chaty-widget-"+a.id).addClass("on-chaty-delay"),t("#chaty-widget-"+a.id).addClass("delay-time-"+parseInt(a.triggers.time_delay)),t("#chaty-widget-"+a.id).attr("data-time",parseInt(a.triggers.time_delay))),P(a.triggers.has_display_after_page_scroll)&&parseInt(a.triggers.display_after_page_scroll)>0&&(nt=!0,t("#chaty-widget-"+a.id).addClass("on-chaty-scroll"),t("#chaty-widget-"+a.id).addClass("page-scroll-"+parseInt(a.triggers.display_after_page_scroll)),t("#chaty-widget-"+a.id).attr("data-scroll",parseInt(a.triggers.display_after_page_scroll))),P(a.triggers.exit_intent)&&(ct=!0,t("#chaty-widget-"+a.id).addClass("on-chaty-exit-intent"))):(o(a.id),t("#chaty-widget-"+a.id).addClass("active")),!_(a.settings.font_family)&&"none"!=a.settings.font_family){var O=a.settings.font_family;-1!=t.inArray(O,$)?"System Stack"==O&&(O="-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"):(t("head").append(''),t("head").append('')),n+="#chaty-widget-"+a.id+", #chaty-widget-"+a.id+" .chaty-tooltip:after {font-family: "+O+"}"}}ct&&S(),""!=n&&(t("#custom-chaty-css").length||t("head").append(""),t("#custom-chaty-css").append(n)),""!=c&&(t("#custom-advance-chaty-css").length||t("head").append(""),t("#custom-advance-chaty-css").append(c)),e==Y.length-1}),t("#custom-advance-chaty-css").length||t("head").append(""),t("#custom-advance-chaty-css").append(ht)),z(),I()}function s(t){if(P(t.is_agent)){if(t.agent_data.length&&(!K&&P(t.is_agent_desktop)||K&&P(t.is_agent_mobile)))return!0}else if((!K&&P(t.is_desktop)||K&&P(t.is_mobile))&&(""!=t.value||"Contact_Us"==t.channel))return!0;return!1}function o(n){if(t("#chaty-widget-"+n+" .chaty-channel.chaty-default-open").length){var c=t("#chaty-widget-"+n+" .chaty-channel.chaty-default-open a.chaty-whatsapp-form").data("form");if(!_(c)){var i=Q(n,"c-"+t("#chaty-widget-"+n+" .chaty-channel.chaty-default-open").data("channel"));if(i&&(t("#"+c).addClass("is-active"),t("#"+c).length)){var s=t("#chaty-widget-"+n+" .chaty-channel.chaty-default-open a.chaty-whatsapp-form").html();if(a(n),t("#chaty-widget-"+n).find(".ch-pending-msg").remove(),t("#chaty-widget-"+n+" .chaty-widget").removeClass("chaty-open"),t("#chaty-widget-"+n).addClass("form-open"),t("#"+c).addClass("active"),t("#chaty-widget-"+n+" .open-chaty-channel").html(s),t("#chaty-widget-"+n).addClass("active"),t("#chaty-widget-"+n).addClass("active"),t("#chaty-widget-"+n).hasClass("auto-hide-chaty")){var o=parseInt(t("#chaty-widget-"+n).data("time"));o>0&&(o+=rt,t("#chaty-widget-"+n).addClass("hide-after-"+o))}if("on"==chaty_settings.data_analytics_settings){var h=[],r=t("#chaty-widget-"+n+" .chaty-channel.chaty-default-open").data("channel"),l=Q(n,"v-"+r);if(l&&"undefined"!=typeof r&&(H(n,"v-"+r),h.push(r)),!tt&&h.length){var d=t("#chaty-widget-"+n).data("nonce");t.ajax({url:chaty_settings.ajax_url,data:{widgetId:n,channels:h,userId:n,isMobile:K,widgetNonce:d,action:"update_chaty_channel_views"},type:"post",success:function(t){},error:function(t,e,a){monitorErrorLog(t,e,a)}})}}return}}}if(t("#chaty-widget-"+n).addClass("active"),t("#chaty-widget-"+n).hasClass("auto-hide-chaty")){var o=parseInt(t("#chaty-widget-"+n).data("time"));o>0&&(o+=rt,t("#chaty-widget-"+n).addClass("hide-after-"+o))}var g=Q(n,"v-widget");if(g){H(n,"v-widget");var r,h=(t("#chaty-widget-"+n).data("user"),[]),y=0,p=0,u=t("#chaty-widget-"+n).data("key");if(typeof Y[u]!=e){var f=G("activechatyWidgets");null!=f?(f=f.split(","),-1==t.inArray(n,f)&&(f.push(n),f=f.join(","),R("activechatyWidgets",f,1))):(f=n,R("activechatyWidgets",f,1))}if(t("#chaty-widget-"+n+" .chaty-widget").hasClass("has-single")){y=1,r=t("#chaty-widget-"+n+" .chaty-channel").data("channel");var l=Q(n,"v-"+r);l&&"undefined"!=typeof r&&(H(n,"v-"+r),h.push(r))}else t("#chaty-widget-"+n+" .chaty-widget").hasClass("chaty-open")&&(p=1,t("#chaty-widget-"+n+" .chaty-channel-list .chaty-channel").each(function(){r=t(this).data("channel");var e=Q(n,"v-"+r);e&&"undefined"!=typeof r&&(H(n,"v-"+r),h.push(r))}));if(g&&!tt){var d=t("#chaty-widget-"+n).data("nonce");tt||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:n,channels:h,userId:n,isMobile:K,isOpen:p,isSingle:y,widgetNonce:d,action:"update_chaty_widget_views"},type:"post",success:function(t){},error:function(t,e,a){monitorErrorLog(t,e,a)}})}}}function h(t,e){return t}function r(t,e){switch(t){case"chat-smile":return'';case"chat-bubble":return'';case"chat-db":return'';default:return''}}function l(e,a,n){var c="";if(!P(e.is_agent)){x(e.channel_type)&&(e.channel_type=e.channel);var i=b(e,a),s=u(e,i,n,a);if("Contact_Us"==e.channel_type)c+=" has-chaty-box chaty-contact-form";else if("Whatsapp"==e.channel_type&&P(e.has_welcome_message)&&!_(e.chat_welcome_message)&&P(e.is_default_open)){var o=Q(a,"c-"+e.channel_type);o&&(c+=" chaty-default-open")}return"
"+s+"
"}if(e.agent_data.length){var h=0,r=[];if(t.each(e.agent_data,function(t,e){""!=e.value&&(h++,r=e)}),h>0){var i,s,l=v(a);return null==l&&(l=-1),d(e,a),i=b(e,a),s=u(e,i,n,a),("Instagram"!=e.channel||"#ffffff"!=e.icon_color&&"#fff"!=e.icon_color)&&(ht+=".chaty-agent-"+a+"-"+e.channel+" .color-element {fill: "+e.icon_color+"; color: "+e.icon_color+";}"),ht+=".chaty-agent-"+a+"-"+e.channel+" .chaty-custom-icon { background-color: "+e.icon_color+";}",ht+=".chaty-agent-"+a+"-"+e.channel+" .chaty-svg-img { background-color: "+e.icon_color+";}","
"+s+"
"}}}function d(e,a){var n="",c=v(a);null==c&&(c=-1),n+="",ht+=".chaty-agent-header.agent-info-"+a+"-"+e.channel+" { background-color: "+e.header_bg_color+"; color: "+e.header_text_color+" } ",ht+=".agent-info-"+a+"-"+e.channel+" .chaty-close-agent-list svg { fill: "+e.header_text_color+" } ",t("body").append(n)}function g(e,a,n,c,i,s){var o=e.value,h="_blank";if("Whatsapp"==a.channel_type){var r=y(e.value);K?(h="",o="https://wa.me/"+r):(h="_blank",o="https://web.whatsapp.com/send/?phone="+r)}else"WeChat"==a.channel_type?(h="",o="javascript:;"):"Email"==a.channel_type?(h="",o="mailto:"+e.value):"Facebook_Messenger"==a.channel_type?h=K?"":"_blank":"SMS"==a.channel_type?(h="",o="sms:"+e.value):"Telegram"==a.channel_type?(o=p(e.value,"@"),o="https://telegram.me/"+o,h="_blank"):"Twitter"==a.channel_type?o="https://twitter.com/"+t.trim(e.value):"Phone"==a.channel_type?(h="",o="tel:"+t.trim(e.value)):"Skype"==a.channel_type?(h="",o="skype:"+t.trim(e.value)+"?chat"):"Snapchat"==a.channel_type?o="https://www.snapchat.com/add/"+t.trim(e.value):"Vkontakte"==a.channel_type?o="https://vk.me/"+t.trim(e.value):"Linkedin"==a.channel_type?o="personal"==e.link_type?"https://www.linkedin.com/in/"+t.trim(e.value):"https://www.linkedin.com/company/"+t.trim(e.value):"Viber"==a.channel_type?(o=p(e.value,"+"),isNaN(o)||(o=o.replace("+",""),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(o="+"+o),o="viber://chat?number="+o),h=""):"TikTok"==a.channel_type&&(o=p(t.trim(e.value),"@"),o="https://www.tiktok.com/@"+o,h="");return""+i+""+s+""}function y(t){return t=p(t,"+"),t=t.replace(/ /g,""),t=t.replace(/-/g,""),t=t.replace(/_/g,"")}function p(e,a){for(e=t.trim(e);e.charAt(0)==a;)e=e.substring(1);for(;e.charAt(e.length-1)==a;)e=e.substring(0,e.length-1);return e}function u(e,a,n,c){var i="";if(P(e.is_agent))e.url="javascript:;",e.target="";else if("Whatsapp"==e.channel_type)if(P(e.has_welcome_message)&&!_(e.chat_welcome_message))e.url="javascript:;",e.target="",i+=" has-chaty-box chaty-whatsapp-form",m(e,c);else{var s="";if(!_(e.pre_set_message)){s=decodeURI(e.pre_set_message);var o=t("title").text();s=_(o)?s.replace(/{title}/g,""):s.replace(/{title}/g,o),s=s.replace(/{url}/g,window.location),s=encodeURIComponent(s)}K?(e.target="",e.url="https://wa.me/"+e.value+"?text="+s):(e.target="_blank",P(e.is_use_web_version)?e.url="https://wa.me/"+e.value+"?text="+s:e.url="https://web.whatsapp.com/?phone="+e.value+"&text="+s)}else if("WeChat"==e.channel_type)_(e.qr_code_image_url)||(w(e,c),e.url="javascript:;",e.target="",i+=" has-chaty-box chaty-qr-code-form");else if("Contact_Us"==e.channel_type)f(e,c),e.url="javascript:;",e.target="",i+=" has-chaty-box chaty-contact-us-form";else if("Email"==e.channel_type){if(!_(e.mail_subject)){var h=decodeURI(e.mail_subject),o=t("title").text();h=_(o)?h.replace(/{title}/g,""):h.replace(/{title}/g,o),h=h.replace(/{url}/g,window.location),h=encodeURIComponent(h),e.url+="?subject="+h}}else"Viber"==e.channel_type?(e.value=p(e.value,"+"),K&&!isNaN(e.value)&&navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(e.value="+"+e.value),e.url="viber://chat?number="+e.value,e.target=""):"Vkontakte"==e.channel_type&&(e.url="https://vk.me/"+t.trim(e.value));var r="";return _(e.click_event)||(r='onclick="'+e.click_event+'"',e.target="",e.url="javascript:;"),""+a+""}function f(e,a){var n="",c=v(a);null==c&&(c=-1),n+="",t("body").append(n)}function m(e,a){var n="",c=v(a);null==c&&(c=-1);var i="https://web.whatsapp.com/send",s="";if(K?i="https://wa.me/"+e.value:(i=P(e.is_use_web_version)?"https://web.whatsapp.com/send":"https://wa.me/"+e.value,s="_blank"),n+="",t("body").append(n),t("#chaty-form-"+a+"-"+e.channel_type+" .chaty-whatsapp-message").html(e.chat_welcome_message),!_(e.pre_set_message)){var o=e.pre_set_message,h=t("title").text();o=_(h)?o.replace(/{title}/g,""):o.replace(/{title}/g,h),o=o.replace(/{url}/g,window.location),t("#chaty-form-"+a+"-"+e.channel_type+" .csass-whatsapp-input").val(o)}t("#chaty-form-"+a+"-"+e.channel_type).show()}function v(e){var a=null;return Y.length&&t.each(Y,function(t,n){n.id==e&&(a=t)}),a}function w(e,a){var n="",c=v(a);null==c&&(c=-1),n+="",t("body").append(n)}function _(e){return null==e||""==e||""==t.trim(e)?!0:!1}function b(t){return""!=t.custom_image_url&&"null"!=t.custom_image_url?""+t.hover_text+"":""+t.svg_icon+""}function x(e){return""==e||""==t.trim(e)||null==e||"null"==e?!0:!1}function C(t){return"custom"==t.position?t.custom_position:t.position}function k(t){if("vertical"!=t.settings.icon_view)return"top";var e=C(t.settings);return"right"==e?"left":"right"}function I(){if(t(".chaty.auto-hide-chaty").length&&(J=setInterval(function(){rt++;var e=rt;if(t(".chaty.auto-hide-chaty.hide-after-"+rt).length){var a=t(".chaty.auto-hide-chaty.hide-after-"+e).data("id");t(".chaty-form-"+a).removeClass("active"),t(".chaty.auto-hide-chaty.hide-after-"+e).removeClass("active"),t("#chaty-widget-0"+a).removeClass("auto-hide-chaty")}0==t(".chaty.auto-hide-chaty").length&&clearInterval(J)},1e3)),et&&(X=setInterval(function(){if(st++,t(".chaty.delay-time-"+st).length){var e=t(".chaty.delay-time-"+st).data("id");T(e)}},1e3)),nt){t(window).on("scroll",function(){if(nt){var e=t(document).height()-t(window).height(),a=t(window).scrollTop();if(0!=e){var n=parseInt(a/e*100);if(n>=ot){var c=ot;ot=n;for(var i=c;n>=i;i++)-1==t.inArray(i,it)&&t(".chaty.on-chaty-scroll.page-scroll-"+i).length&&t(".chaty.on-chaty-scroll.page-scroll-"+i).each(function(){var e=t(this).data("id");t(this).removeClass("on-chaty-scroll"),T(e)});ot=n}}}});window.innerWidth>document.documentElement.clientWidth}}function j(){function e(){if(ct){var t=location.hash,e=t.split("#!/"),a=e[1];if(""!==a){var n=window.location.hash;""===n&&M()}}}if(window.history&&window.history.pushState&&ct){var a=100;window.history.state&&window.history.state.page&&(a=window.history.state.page),window.history.pushState({page:a+1},""),window.history.pushState({page:a+2},""),window.onpopstate=function(){e()},window.history.onpopstate=function(){e()},window.addEventListener("popstate",function(){e()}),document.addEventListener("backbutton",function(){e()}),window.addEventListener("backbutton",function(){e()}),t(window).on("popstate",function(){e()})}}function S(){K?j():t(document).mouseleave(function(t){function e(t,e,a){t.addEventListener?(t.addEventListener(e,a,!1),M()):t.attachEvent&&t.attachEvent("on"+e,a)}e(document,"mouseout",function(t){null==t.toElement&&null==t.relatedTarget&&M()})})}function M(){ct&&t(".on-chaty-exit-intent").length&&t(".on-chaty-exit-intent").each(function(){var e=t(this).data("id");t(this).removeClass("on-chaty-exit-intent"),T(e),t("#chaty-widget-"+e+" .chaty-widget").append("
"),setTimeout(function(){t(".chaty-exit-intent").addClass("animate"),setTimeout(function(){t(".chaty-exit-intent").removeClass("animate")},2500)},500)})}function T(e){o(e),t(".chaty-widget-"+e).removeClass("on-chaty-delay"),t(".chaty-widget-"+e).removeClass("on-chaty-exit-intent"),t(".chaty-widget-"+e).removeClass("on-chaty-scroll"),t(".chaty.on-chaty-delay").length||(clearInterval(X),et=!1),t(".chaty.on-chaty-exit-intent").length||(ct=!1),t(".chaty.on-chaty-scroll").length||(nt=!1)}function z(){t(".chaty-tooltip").each(function(){""==t(this).data("hover")&&t(this).removeClass("left").removeClass("right").removeClass("top").removeClass("chaty-tooltip")})}function F(t,e){return""==t.widget_icon?t.widget_icon="chat-base":"chat-image"==t.widget_icon&&_(t.widget_icon_url)&&(t.widget_icon="chat-base"),"chat-image"==t.widget_icon?"Chaty Widget":''+r(t.widget_icon,t.widget_color)+""}function A(e,a){var n=Q(a,"c-widget");n&&"none"!=e.attention_effect&&""!=e.attention_effect&&(t("#chaty-widget-"+a).attr("data-animation",e.attention_effect),t("#chaty-widget-"+a+" .chaty-widget").hasClass("has-single")?t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-channel .chaty-svg").addClass("chaty-animation-"+e.attention_effect):t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-cta-main .chaty-cta-button").addClass("chaty-animation-"+e.attention_effect))}function U(e,a){var n=Q(a,"c-widget");n&&P(e.is_pending_mesg_enabled)&&parseInt(e.pending_mesg_count)>0&&(t("#chaty-widget-"+a+" .chaty-widget").hasClass("has-single")?"sheen"==e.attention_effect||"spin"==e.attention_effect||"pulse"==e.attention_effect?t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-channel").append(""+e.pending_mesg_count+""):t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-channel .chaty-svg").append(""+e.pending_mesg_count+""):"jump"==e.attention_effect||"waggle"==e.attention_effect||"blink"==e.attention_effect||"pulse-icon"==e.attention_effect?t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-cta-main .chaty-cta-button").append(""+e.pending_mesg_count+""):t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-cta-main").append(""+e.pending_mesg_count+""))}function B(t){for(t=t.toString();t.length<2;)t="0"+t;return t}function D(t){var e=!0;if(P(t.triggers.has_day_hours_scheduling_rules)&&t.triggers.day_hours_scheduling_rules.length>0){var a=t.triggers.day_hours_scheduling_rules;if(a.length>0){e=!1;var n=new Date;n=E(n,t.triggers.day_time_diff);for(var c=n.getHours(),i=n.getMinutes(),s=n.getDay(),o=0;o=0&&a[o].days<=6?a[o].days==s&&(l=1):7==a[o].days?s>=0&&4>=s&&(l=1):8==a[o].days?s>=1&&5>=s&&(l=1):9==a[o].days&&(5==s||6==s)&&(l=1),1==l&&(c>a[o].start_hours&&c=a[o].start_min&&(h=1):c>a[o].start_hours&&c==a[o].end_hours?i<=a[o].end_min&&(h=1):c==a[o].start_hours&&c==a[o].end_hours&&i>=a[o].start_min&&i<=a[o].end_min&&(h=1),1==h&&i>=a[o].start_min&&i<=a[o].end_min&&(r=1)),1==h&&1==l&&(e=1),1==e&&(o=a.length+1)}}}return e}function P(t){return"1"==t||1==t||1==t||"true"==t||"yes"==t||"on"==t?!0:!1}function E(t,e){if(isNaN(e)){var a=new Date(t.toLocaleString("en-US",{timeZone:e})),n=t.getTime()-a.getTime();return new Date(t.getTime()-n)}var c=new Date;if(c=c.toLocaleString("en-US",{timeZone:"UTC"}),c=new Date(c),-1!=e.indexOf("+")){var i=e.replace("+",""),s=parseInt(i),o=60*parseFloat(i%s);o=c.getUTCMinutes()+o,o>59&&(s+=parseInt(o/60),o%=60),c.setUTCHours(c.getUTCHours()+s,o)}else if(-1!=e.indexOf("-")){var i=e.replace("-",""),s=parseInt(i),o=60*parseFloat(i%s);o=c.getUTCMinutes()-o,0>o&&(s-=parseInt(o/60),o%=60),c.setUTCHours(c.getUTCHours()-s,-o)}var n=t.getTime()-c.getTime();return new Date(t.getTime()-n)}function N(t){if(t.triggers.has_date_scheduling_rules){var e=t.triggers.date_scheduling_rules.start_date_time,a=t.triggers.date_scheduling_rules.end_date_time,n=new Date;n=E(n,t.triggers.time_diff);var c=n.getFullYear()+"-"+B(n.getMonth()+1)+"-"+B(n.getDate())+" "+B(n.getHours())+":"+B(n.getMinutes())+":"+B(n.getSeconds());return""==a&&c>=e?!0:""==e&&a>=c?!0:""!=e&&""!=a&&c>=e&&a>=c?!0:!1}return!0}function W(e){return P(e.triggers.has_countries)&&!_(e.triggers.countries)&&e.triggers.countries.length&&(Z=q(),"-"!=Z&&-1==t.inArray(Z,e.triggers.countries))?!1:!0}function q(){return Z="","undefined"!=typeof Storage&&null!=window.sessionStorage.getItem("chaty_user_country_code")?Z=window.sessionStorage.getItem("chaty_user_country_code"):V("chaty_user_country_code")&&(Z=G("chaty_user_country_code")),Z}function L(t){"undefined"!=typeof Storage?null==window.sessionStorage.getItem("chaty_user_country_code")&&window.sessionStorage.setItem("chaty_user_country_code",t):V("chaty_user_country_code")||R("chaty_user_country_code",t,365)}function O(t,e){var a=G("chatyWidget_"+t),n=[];if(null!=a&&""!=a&&(n=JSON.parse(a)),n.length>0)for(var c=0;c0)for(var i=0;i=2?!0:!1}return!0}function R(t,e,a){var n=new Date;n.setTime(n.getTime()+24*a*60*60*1e3);var c="expires="+n.toUTCString();document.cookie=t+"="+e+"; "+c+"; path=/; SameSite=Lax"}function G(t){for(var t=t+"=",e=document.cookie.split(";"),a=0;a"+e.message+""),t(".field-name, .field-email, .field-message, .field-phone").val(""),"yes"==e.redirect_action&&("yes"==e.link_in_new_tab?window.open(e.redirect_link,"_blank"):window.location=e.redirect_link),"yes"==e.close_form_after&&setTimeout(function(){if(t(".chaty-outer-forms.active").length){var e=t(".chaty-outer-forms.active").data("widget");_(e)&&0!=e||t("#chaty-widget-"+e).length&&(t("#chaty-widget-"+e).removeClass("form-open"),t(".chaty-outer-forms.active").removeClass("active"),t("#chaty-widget-"+e).find(".chaty-widget").hasClass("chaty-no-close-button")&&t("#chaty-widget-"+e).find(".chaty-widget").addClass("chaty-open"))}},1e3*parseInt(e.close_form_after_seconds));else if(1==e.error){if(e.errors.length)for(var a=0;a"+e.errors[a].message+"")}else t(".chaty-contact-inputs").append("
"+e.message+"
")}})}else t(".has-chaty-error:first").focus();return!1}),t(document).on("click",".chaty-widget.has-single .chaty-i-trigger .chaty-channel:not(.chaty-agent-button).Phone-channel",function(){window.location=t(this).find("a").prop("href")}),t(document).on("click",".chaty-widget.has-single .chaty-i-trigger .chaty-channel:not(.chaty-agent-button).Phone-channel a",function(t){t.stopPropagation(),t.stopImmediatePropagation()})})}); // source --> https://www.supertechindustrial.com/wp-content/plugins/crelly-slider/js/jquery.crellyslider.min.js?ver=1.3.4 /** * Plugin Name: Crelly Slider * Plugin URI: https://wordpress.org/plugins/crelly-slider/ * Description: A free responsive slider that supports layers. Add texts, images, videos and beautify them with transitions and animations. * Version: 1.3.4 * Author: Fabio Rinaldi * Author URI: https://github.com/fabiorino * License: MIT */ var crellyslider_youtube_api_ready=!1,crellyslider_vimeo_api_ready=!1;!function(e){var t,i,n;t=this,i=document,n=function(e,t,i,n){var a,o;(function(e,t,i,n){function a(e){for(;e&&void 0!==e.originalEvent;)e=e.originalEvent;return e}function o(t){for(var i,n,a={};t;){for(n in i=e.data(t,k))i[n]&&(a[n]=a.hasVirtualBinding=!0);t=t.parentNode}return a}function s(){M=!0}function r(){M=!1}function c(){l(),P=setTimeout(function(){P=0,C=0,Y.length=0,O=!1,s()},e.vmouse.resetTimerDuration)}function l(){P&&(clearTimeout(P),P=0)}function d(t,i,o){var s;return(o&&o[t]||!o&&function(t,i){for(var n;t;){if((n=e.data(t,k))&&(!i||n[i]))return t;t=t.parentNode}return null}(i.target,t))&&(s=function(t,i){var o,s,r,c,l,d,p,f,u,h=t.type;if((t=e.Event(t)).type=i,o=t.originalEvent,s=e.event.props,h.search(/^(mouse|click)/)>-1&&(s=E),o)for(p=s.length;p;)t[c=s[--p]]=o[c];if(h.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1),-1!==h.search(/^touch/)&&(h=(r=a(o)).touches,l=r.changedTouches,d=h&&h.length?h[0]:l&&l.length?l[0]:n))for(f=0,u=D.length;fs||Math.abs(i.pageY-L)>s)&&!n&&d("vmousecancel",t,r),d("vmousemove",t,r),c()}}function v(e){if(!M){s();var t,i,n=o(e.target);d("vmouseup",e,n),F||(t=d("vclick",e,n))&&t.isDefaultPrevented()&&(i=a(e).changedTouches[0],Y.push({touchID:C,x:i.clientX,y:i.clientY}),O=!0),d("vmouseout",e,n),F=!1,c()}}function y(t){var i,n=e.data(t,k);if(n)for(i in n)if(n[i])return!0;return!1}function m(){}function g(t){var i=t.substr(1);return{setup:function(){y(this)||e.data(this,k,{}),e.data(this,k)[t]=!0,_[t]=(_[t]||0)+1,1===_[t]&&R.bind(i,p),e(this).bind(i,m),x&&(_.touchstart=(_.touchstart||0)+1,1===_.touchstart&&R.bind("touchstart",f).bind("touchend",v).bind("touchmove",h).bind("scroll",u))},teardown:function(){--_[t],_[t]||R.unbind(i,p),x&&(--_.touchstart,_.touchstart||R.unbind("touchstart",f).unbind("touchmove",h).unbind("touchend",v).unbind("scroll",u));var n=e(this),a=e.data(this,k);a&&(a[t]=!1),n.unbind(i,m),y(this)||n.removeData(k)}}}var b,w,k="virtualMouseBindings",S="virtualTouchID",T="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),D="clientX clientY pageX pageY screenX screenY".split(" "),I=e.event.mouseHooks?e.event.mouseHooks.props:[],E=e.event.props.concat(I),_={},P=0,N=0,L=0,F=!1,Y=[],O=!1,M=!1,x="addEventListener"in i,R=e(i),z=1,C=0;for(e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500},w=0;wMath.floor(e.pageY)||0===e.pageX&&Math.floor(a)>Math.floor(e.pageX)?(a-=i,o-=n):(oe.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-i.coords[1])i.coords[0]?"swipeleft":"swiperight";return a(n,"swipe",e.Event("swipe",{target:o,swipestart:t,swipestop:i}),!0),a(n,s,e.Event(s,{target:o,swipestart:t,swipestop:i}),!0),!0}return!1},eventInProgress:!1,setup:function(){var t,i=this,n=e(i),a={};(t=e.data(this,"mobile-events"))||(t={length:0},e.data(this,"mobile-events",t)),t.length++,t.swipe=a,a.start=function(t){if(!e.event.special.swipe.eventInProgress){e.event.special.swipe.eventInProgress=!0;var n,s=e.event.special.swipe.start(t),r=t.target,c=!1;a.move=function(t){s&&!t.isDefaultPrevented()&&(n=e.event.special.swipe.stop(t),c||(c=e.event.special.swipe.handleSwipe(s,n,i,r))&&(e.event.special.swipe.eventInProgress=!1),Math.abs(s.coords[0]-n.coords[0])>e.event.special.swipe.scrollSupressionThreshold&&t.preventDefault())},a.stop=function(){c=!0,e.event.special.swipe.eventInProgress=!1,o.off(d,a.move),a.move=null},o.on(d,a.move).one(l,a.stop)}},n.on(c,a.start)},teardown:function(){var t,i;(t=e.data(this,"mobile-events"))&&(i=t.swipe,delete t.swipe,t.length--,0===t.length&&e.removeData(this,"mobile-events")),i&&(i.start&&e(this).off(c,i.start),i.move&&o.off(d,i.move),i.stop&&o.off(l,i.stop))}},e.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},function(t,i){e.event.special[t]={setup:function(){e(this).bind(i,e.noop)},teardown:function(){e(this).unbind(i)}}})}(e,this)},"function"==typeof define&&define.amd?define(["jquery"],function(e){return n(e,0,i),e.mobile}):n(t.jQuery,0,i),e.CrellySlider=function(t,i){var n,a=e(t),o="div.crellyslider",s="ul.cs-slides",r="li.cs-slide",c="> *",l=0,d=!1,p=!1,f=!1,u=!0,h=new H(function(){},0),v=new Array,y=new Array,m={},g={},b=1,w=0;if(!crellyslider_youtube_api_ready&&S("youtube")&&function(){var e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t),crellyslider_youtube_api_ready=!0}(),!crellyslider_vimeo_api_ready&&S("vimeo")&&(!function(){function e(t){return new e.fn.init(t)}function t(e,t,i){if(!i.contentWindow.postMessage)return!1;e=JSON.stringify({method:e,value:t}),i.contentWindow.postMessage(e,s)}function i(e){var t,i;try{i=(t=JSON.parse(e.data)).event||t.method}catch(e){}if("ready"!=i||o||(o=!0),!/^https?:\/\/player.vimeo.com/.test(e.origin))return!1;"*"===s&&(s=e.origin),e=t.value;var n=t.data,r=""===r?null:t.player_id;return t=r?a[r][i]:a[i],i=[],!!t&&(void 0!==e&&i.push(e),n&&i.push(n),r&&i.push(r),00:"vimeo"==e?a.find(".cs-vimeo-iframe").length>0:-1}function T(){if(a.wrapInner('
'),a.find(o+" > ul").addClass("cs-slides"),a.find(o+" "+s+" > li").addClass("cs-slide"),0==(n=A().length))return!1;if(1==n){var t=B(0),r=a.find(o).find(s);t.clone().prependTo(r),n++}if(function(){if(!i.randomOrder&&0==i.startFromSlide)return;var e=new Array,t=new Array;if(-1==i.startFromSlide){var r=Math.floor(Math.random()*n);e[0]=r,t[0]=B(r)}else e[0]=i.startFromSlide,t[0]=B(i.startFromSlide);for(var c=1;c
'),i.showNavigation){for(var d='
',f=0;f';d+="
",a.find(o).append(d)}i.showProgressBar?a.find(o).append('
'):a.find(o).append('
'),a.css("display","block"),i.responsive&&N(),I(),A().find(".cs-background-link").html(" ").data({left:0,top:0,in:"none",out:"none",easeIn:0,easeOut:0,delay:0,time:"all"}),function(){a.find(o).find(s).css("visibility","hidden"),a.find(o).find(".cs-progress-bar").css("display","none"),a.find(o).find(".cs-navigation").css("display","none"),a.find(o).find(".cs-controls").css("display","none");var t=B(0).css("background-image");(t=t.replace(/^url\(["']?/,"").replace(/["']?\)$/,"")).match(/\.(jpeg|jpg|gif|png|bmp|tiff|tif)$/)?e("").load(function(){i()}).attr("src",t).each(function(){this.complete&&e(this).load()}):i();function i(){a.find(o).append('
'),a.find(o).find(".cs-preloader").css({"background-color":B(l).css("background-color"),"background-image":B(l).css("background-image"),"background-position":B(l).css("background-position"),"background-repeat":B(l).css("background-repeat"),"background-size":B(l).css("background-size")}),a.find(o).find(".cs-preloader > .cs-bg").css({"background-color":B(l).css("background-color"),"background-image":B(l).css("background-image"),"background-position":B(l).css("background-position"),"background-repeat":B(l).css("background-repeat"),"background-size":B(l).css("background-size")})}}(),function(){var t=new e.Deferred,i=A().find(".cs-yt-iframe, .cs-vimeo-iframe").length,n=0;if(0==i)return t.resolve().promise();return A().find(".cs-yt-iframe, .cs-vimeo-iframe").each(function(){e(this).one("load",function(){var a,o,s,r,l;++n==i&&(o=new e.Deferred,s=A(),r=s.find(c+".cs-yt-iframe").length,l=0,0==r?o.resolve().promise():(s.each(function(){e(this).find(c+".cs-yt-iframe").each(function(){var t=e(this);t.uniqueId(),t.attr("id","cs-yt-iframe-"+t.attr("id"));var i=new YT.Player(t.attr("id"),{events:{onReady:function(){++l==r&&o.resolve()},onStateChange:function(e){e.data===YT.PlayerState.ENDED&&X(t,"loop")&&i.playVideo(),p&&(e.data===YT.PlayerState.PAUSED&&(m[t.attr("id")].manually_paused=!0),e.data===YT.PlayerState.PLAYING&&(m[t.attr("id")].manually_paused=!1))}}});a={player:i,played_once:!1,manually_paused:!1},m[t.attr("id")]=a})}),o.promise())).done(function(){var i,n,a,o,s;(n=new e.Deferred,a=A(),o=a.find(c+".cs-vimeo-iframe").length,s=0,0==o?n.resolve().promise():(a.each(function(){e(this).find(c+".cs-vimeo-iframe").each(function(){var t=e(this);t.uniqueId(),t.attr("id","cs-vimeo-iframe-"+t.attr("id")),t.attr("src",t.attr("src")+"&player_id="+t.attr("id"));var a=$f(t[0]);a.addEvent("ready",function(){a.addEvent("finish",function(){g[t.attr("id")].ended=!0}),a.addEvent("play",function(){g[t.attr("id")].played_once=!0,g[t.attr("id")].ended=!1,p&&(g[t.attr("id")].manually_paused=!1)}),a.addEvent("pause",function(){p&&(g[t.attr("id")].manually_paused=!0)}),X(t,"loop")&&a.api("setLoop",!0),++s==o&&n.resolve()}),i={player:a,played_once:!1,ended:!1,manually_paused:!1},g[t.attr("id")]=i})}),n.promise())).done(function(){t.resolve()})})})}),t.promise()}().done(function(){var t=setInterval(function(){"complete"==document.readyState&&a.find(o).find(".cs-preloader").length>0&&(clearInterval(t),function(){i.responsive&&N();I(),w=e(window).width(),A().each(function(){var t=e(this);t.find(c).each(function(){var t=e(this);t.find("*").each(function(){var t=e(this);D(t)}),D(t)}),t.css("display","none"),t.data("opacity",parseFloat(t.css("opacity")))}),i.responsive&&e(window).resize(function(){w!=e(window).width()&&("full-width"==i.layout&&x()!=e(a).width()||e(a).width()x()&&x() .cs-previous").click(function(){V(C())}),a.find(o).find(".cs-controls > .cs-next").click(function(){V(z())}),i.enableSwipe&&(a.find(o).on("swipeleft",function(){M(),V(z())}),a.find(o).on("swiperight",function(){M(),V(C())})),a.find(o).find(".cs-navigation > .cs-slide-link").click(function(){V(e(this).index())}),i.pauseOnHover&&(a.find(o).find(s).hover(function(){O()}),a.find(o).find(s).mouseleave(function(){M()})),a.find(o).find(s).css("visibility","visible"),a.find(o).find(".cs-progress-bar").css("display","block"),a.find(o).find(".cs-navigation").css("display","block"),a.find(o).find(".cs-controls").css("display","block"),ne(B(0)),B(0).finish(),a.find(o).find(".cs-preloader").animate({opacity:0},300,function(){a.find(o).find(".cs-preloader").remove()}),i.beforeStart(),i.responsive?_():F()}())},100)})}function D(e){e.data("width",parseFloat(e.width())),e.data("height",parseFloat(e.height())),e.data("letter-spacing",parseFloat(e.css("letter-spacing"))),e.data("font-size",parseFloat(e.css("font-size"))),"px"==e.css("line-height").slice(-2).toLowerCase()?e.data("line-height",parseFloat(e.css("line-height"))):"normal"==e.css("line-height")?e.data("line-height",1.15*X(e,"font-size")):e.data("line-height",parseFloat(e.css("line-height"))*X(e,"font-size")),e.data("padding-top",parseFloat(e.css("padding-top"))),e.data("padding-right",parseFloat(e.css("padding-right"))),e.data("padding-bottom",parseFloat(e.css("padding-bottom"))),e.data("padding-left",parseFloat(e.css("padding-left"))),e.data("opacity",parseFloat(e.css("opacity")))}function I(){var e,t;switch(i.layout){case"fixed":e=i.startWidth,t=i.startHeight,a.find(o).css({width:L(e),height:L(t)}),A().css({width:L(e),height:L(t)});break;case"full-width":e=a.width(),t=i.startHeight,a.find(o).css({width:e,height:L(t)}),A().css({width:e,height:L(t)});break;default:return!1}}function E(e){var t=(R()-i.startHeight)/2,n=(x()-i.startWidth)/2,a=0,o=0;return t>0&&(a=t),n>0&&(o=n),{top:a,left:o}}function _(){i.beforeSetResponsive();var t=A();Y(!0),t.each(function(){var t=e(this),i=t.find(c);t.finish(),ne(t),t.finish(),i.each(function(){var t=e(this);t.finish(),oe(t),t.finish(),$(t)&&Q(t)})}),N(),I(),t.each(function(){var t=e(this);t.find(c).each(function(){var t=e(this);t.find("*").each(function(){P(e(this))}),P(t),t.finish(),se(t),t.finish(),$(t)&&Q(t)}),t.finish(),ae(t),t.finish()}),w=e(window).width(),F()}function P(e){e.css({top:L(X(e,"top")+E().top),left:L(X(e,"left")+E().left),"padding-top":L(X(e,"padding-top")),"padding-right":L(X(e,"padding-right")),"padding-bottom":L(X(e,"padding-bottom")),"padding-left":L(X(e,"padding-left"))}),e.is("input")||e.is("button")||e.text().trim().length?e.css({"line-height":L(X(e,"line-height"))+"px","letter-spacing":L(X(e,"letter-spacing")),"font-size":L(X(e,"font-size"))}):e.css({width:L(X(e,"width")),height:L(X(e,"height"))})}function N(){var e=a.width(),t=i.startWidth;b=e>=t||!i.responsive?1:e/t}function L(e){return e*b}function F(){i.automaticSlide?function e(){j(l).done(function(){d||(l=z(),e())})}():j(l),u=!1}function Y(t){for(var i=0;i .cs-slide-link").each(function(){var t=e(this);t.index()==l?t.addClass("cs-active"):t.removeClass("cs-active")}),s=B(n=t).find(c),r=0,d=!1,u=new e.Deferred,p=!1,ne(n).done(function(){var e;e=a.find(o).find(".cs-progress-bar"),W(),e.animate({width:"100%"},X(B(l),"time")),p=!0,(d=!0)&&r==s.length&&u.resolve()}),s.each(function(){var t=e(this),i=X(t,"delay");y.push(new H(function(){oe(t).done(function(){var e,i,n;$(t)&&(G(n=t)?(!X(i=n,"autoplay")||m[i.attr("id")].played_once||U()||K(i).playVideo(),2!=Z(i)||m[i.attr("id")].manually_paused||K(i).playVideo(),m[i.attr("id")].played_once=!0):(!X(e=n,"autoplay")||g[e.attr("id")].played_once||U()||te(e).api("play"),te(e).api("paused")&&!g[e.attr("id")].ended&&g[e.attr("id")].played_once&&!g[e.attr("id")].manually_paused&&te(e).api("play"))),r++,d&&r==s.length&&u.resolve()})},i))}),u.promise(),i.automaticSlide?q(t,!0,!0).done(function(){f=!0,b.resolve()}):q(t,!0,!1).done(function(){f=!0,b.resolve()}),b.promise()}function q(t,i,n){var a=B(t),o=a.find(c),s=i?X(a,"time")+X(a,"ease-in"):0,r=0,l=!1,d=new e.Deferred;return o.each(function(){var a=e(this),s=X(a,"time");if("all"!=s){var c=i?s:0;X(a,"ignore-ease-out")&&(r++,o.length==r&&l&&n&&(J(t),ae(t),d.resolve())),v.push(new H(function(){se(a).done(function(){X(a,"ignore-ease-out")||(r++,o.length==r&&l&&n&&(J(t),ae(t),d.resolve()))})},c))}}),h=new H(function(){p=!1,W(),l=!0,o.length==r&&l&&n&&(J(t),ae(t),d.resolve()),n?o.each(function(){var i=e(this);"all"==X(i,"time")&&(X(i,"ignore-ease-out")&&(r++,o.length==r&&l&&n&&(J(t),ae(t),d.resolve())),se(i).done(function(){X(i,"ignore-ease-out")||(r++,o.length==r&&l&&n&&(J(t),ae(t),d.resolve()))}))}):d.resolve()},s),d.promise()}function $(e){return G(e)||e.hasClass("cs-vimeo-iframe")}function J(t){B(t).each(function(){var t=e(this);t.find(c+".cs-yt-iframe").each(function(){ee(e(this))})}),B(t).each(function(){var t=e(this);t.find(c+".cs-vimeo-iframe").each(function(){ie(e(this))})})}function Q(e){G(e)?ee(e):ie(e)}function G(e){return e.hasClass("cs-yt-iframe")}function K(e){return m[e.attr("id")].player}function Z(e){return K(e).getPlayerState()}function ee(e){1==Z(e)&&K(e).pauseVideo()}function te(e){return g[e.attr("id")].player}function ie(e){te(e).api("pause")}function ne(t){var i=B(t),n=X(i,"in"),a=X(i,"ease-in"),o=new e.Deferred;if("block"==i.css("display"))return o.resolve().promise();if(u)return i.css({display:"block",top:0,left:0,opacity:X(i,"opacity")}),o.resolve().promise();switch(n){case"fade":i.css({display:"block",top:0,left:0,opacity:0}),i.animate({opacity:X(i,"opacity")},a,function(){o.resolve()});break;case"fadeLeft":i.css({display:"block",top:0,left:x(),opacity:0}),i.animate({opacity:X(i,"opacity"),left:0},a,function(){o.resolve()});break;case"fadeRight":i.css({display:"block",top:0,left:-x(),opacity:0}),i.animate({opacity:X(i,"opacity"),left:0},a,function(){o.resolve()});break;case"slideLeft":i.css({display:"block",top:0,left:x(),opacity:X(i,"opacity")}),i.animate({left:0},a,function(){o.resolve()});break;case"slideRight":i.css({display:"block",top:0,left:-x(),opacity:X(i,"opacity")}),i.animate({left:0},a,function(){o.resolve()});break;case"slideUp":i.css({display:"block",top:R(),left:0,opacity:X(i,"opacity")}),i.animate({top:0},a,function(){o.resolve()});break;case"slideDown":i.css({display:"block",top:-R(),left:0,opacity:X(i,"opacity")}),i.animate({top:0},a,function(){o.resolve()});break;default:i.css({display:"block",top:0,left:0,opacity:X(i,"opacity")}),o.resolve()}return o.promise()}function ae(t){var i=B(t),n=X(i,"out"),a=X(i,"ease-out"),o=new e.Deferred;if("none"==i.css("display"))return o.resolve().promise();switch(n){case"fade":i.animate({opacity:0},a,function(){i.css({display:"none",opacity:X(i,"opacity")}),o.resolve()});break;case"fadeLeft":i.animate({opacity:0,left:-x()},a,function(){i.css({display:"none",opacity:X(i,"opacity"),left:0}),o.resolve()});break;case"fadeRight":i.animate({opacity:0,left:x()},a,function(){i.css({display:"none",opacity:X(i,"opacity"),left:0}),o.resolve()});break;case"slideLeft":i.animate({left:-x()},a,function(){i.css({display:"none",left:0}),o.resolve()});break;case"slideRight":i.animate({left:x()},a,function(){i.css({display:"none",left:0}),o.resolve()});break;case"slideUp":i.animate({top:-R()},a,function(){i.css({display:"none",top:0}),o.resolve()});break;case"slideDown":i.animate({top:R()},a,function(){i.css({display:"none",top:0}),o.resolve()});break;default:i.css({display:"none"}),o.resolve()}return o.promise()}function oe(t){var i=t.outerWidth(),n=t.outerHeight(),a=X(t,"in"),o=X(t,"ease-in"),s=X(t,"top"),r=X(t,"left"),c=new e.Deferred;if("block"==t.css("display"))return c.resolve().promise();switch(a){case"slideDown":t.css({display:"block",top:-n,left:L(r+E().left),opacity:X(t,"opacity")}).animate({top:L(s+E().top)},o,function(){c.resolve()});break;case"slideUp":t.css({display:"block",top:R(),left:L(r+E().left),opacity:X(t,"opacity")}).animate({top:L(s+E().top)},o,function(){c.resolve()});break;case"slideLeft":t.css({display:"block",top:L(s+E().top),left:x(),opacity:X(t,"opacity")}).animate({left:L(r+E().left)},o,function(){c.resolve()});break;case"slideRight":t.css({display:"block",top:L(s+E().top),left:-i,opacity:X(t,"opacity")}).animate({left:L(r+E().left)},o,function(){c.resolve()});break;case"fade":t.css({display:"block",top:L(s+E().top),left:L(r+E().left),opacity:0}).animate({opacity:X(t,"opacity")},o,function(){c.resolve()});break;case"fadeDown":t.css({display:"block",top:-n,left:L(r+E().left),opacity:0}).animate({top:L(s+E().top),opacity:X(t,"opacity")},o,function(){c.resolve()});break;case"fadeUp":t.css({display:"block",top:R(),left:L(r+E().left),opacity:0}).animate({top:L(s+E().top),opacity:X(t,"opacity")},o,function(){c.resolve()});break;case"fadeLeft":t.css({display:"block",top:L(s+E().top),left:x(),opacity:0}).animate({left:L(r+E().left),opacity:X(t,"opacity")},o,function(){c.resolve()});break;case"fadeRight":t.css({display:"block",top:L(s+E().top),left:-i,opacity:0}).animate({left:L(r+E().left),opacity:X(t,"opacity")},o,function(){c.resolve()});break;case"fadeSmallDown":t.css({display:"block",top:L(s+E().top-30),left:L(r+E().left),opacity:0}).animate({top:L(s+E().top),opacity:X(t,"opacity")},o,function(){c.resolve()});break;case"fadeSmallUp":t.css({display:"block",top:L(s+E().top+30),left:L(r+E().left),opacity:0}).animate({top:L(s+E().top),opacity:X(t,"opacity")},o,function(){c.resolve()});break;case"fadeSmallLeft":t.css({display:"block",top:L(s+E().top),left:L(r+E().left+30),opacity:0}).animate({left:L(r+E().left),opacity:X(t,"opacity")},o,function(){c.resolve()});break;case"fadeSmallRight":t.css({display:"block",top:L(s+E().top),left:L(r+E().left-30),opacity:0}).animate({left:L(r+E().left),opacity:X(t,"opacity")},o,function(){c.resolve()});break;default:t.css({display:"block",top:L(s+E().top),left:L(r+E().left),opacity:X(t,"opacity")}),c.resolve()}return c.promise()}function se(t){var i=t.outerWidth(),n=t.outerHeight(),a=X(t,"out"),o=X(t,"ease-out"),s=new e.Deferred;if("none"==t.css("display"))return s.resolve().promise();switch(a){case"slideDown":t.animate({top:R()},o,function(){t.css({display:"none"}),s.resolve()});break;case"slideUp":t.animate({top:-n},o,function(){t.css({display:"none"}),s.resolve()});break;case"slideLeft":t.animate({left:-i},o,function(){t.css({display:"none"}),s.resolve()});break;case"slideRight":t.animate({left:x()},o,function(){t.css({display:"none"}),s.resolve()});break;case"fade":t.animate({opacity:0},o,function(){t.css({display:"none",opacity:X(t,"opacity")}),s.resolve()});break;case"fadeDown":t.animate({top:R(),opacity:0},o,function(){t.css({display:"none",opacity:X(t,"opacity")}),s.resolve()});break;case"fadeUp":t.animate({top:-n,opacity:0},o,function(){t.css({display:"none",opacity:X(t,"opacity")}),s.resolve()});break;case"fadeLeft":t.animate({left:-i,opacity:0},o,function(){t.css({display:"none",opacity:X(t,"opacity")}),s.resolve()});break;case"fadeRight":t.animate({left:x(),opacity:0},o,function(){t.css({display:"none",opacity:X(t,"opacity")}),s.resolve()});break;case"fadeSmallDown":t.animate({top:L(X(t,"top")+E().top+30),opacity:0},o,function(){t.css({display:"none",opacity:X(t,"opacity")}),s.resolve()});break;case"fadeSmallUp":t.animate({top:L(X(t,"top")+E().top-30),opacity:0},o,function(){t.css({display:"none",opacity:X(t,"opacity")}),s.resolve()});break;case"fadeSmallLeft":t.animate({left:L(X(t,"left")+E().left-30),opacity:0},o,function(){t.css({display:"none",opacity:X(t,"opacity")}),s.resolve()});break;case"fadeSmallRight":t.animate({left:L(X(t,"left")+E().left+30),opacity:0},o,function(){t.css({display:"none",opacity:X(t,"opacity")}),s.resolve()});break;default:t.css({display:"none"}),s.resolve()}return s.promise()}this.resume=function(){M()},this.pause=function(){O()},this.nextSlide=function(){V(z())},this.previousSlide=function(){V(C())},this.changeSlide=function(e){V(e)},this.getCurrentSlide=function(){return l},this.getTotalSlides=function(){return n}},e.fn.crellySlider=function(t){var i=e.extend({layout:"fixed",responsive:!0,startWidth:1140,startHeight:500,pauseOnHover:!0,automaticSlide:!0,randomOrder:!0,startFromSlide:0,showControls:!0,showNavigation:!0,showProgressBar:!0,enableSwipe:!0,slidesTime:3e3,elementsDelay:0,elementsTime:"all",slidesEaseIn:300,elementsEaseIn:300,slidesEaseOut:300,elementsEaseOut:300,ignoreElementsEaseOut:!1,videoAutoplay:!1,videoLoop:!1,beforeStart:function(){},beforeSetResponsive:function(){},beforeSlideStart:function(){},beforePause:function(){},beforeResume:function(){}},t);return this.each(function(){if(null==e(this).data("crellySlider")){var t=new e.CrellySlider(this,i);e(this).data("crellySlider",t)}})}}(jQuery);